package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 众筹参与表对象 project_store
 * 
 * @author ruoyi
 * @date 2024-11-27
 */
public class ProjectStore extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 众筹项目参与记录id */
    private Long projectUserId;

    /** 众筹项目id */
    @Excel(name = "众筹项目id")
    private Long projectId;

    /** 众筹参与实体id */
    @Excel(name = "众筹参与实体id")
    private Long userId;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Long quantity;

    /** 商品skuID */
    @Excel(name = "商品skuID")
    private Long skuId;

    /** 应付金额 */
    @Excel(name = "应付金额")
    private BigDecimal price;

    /** 加入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "加入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date joinTime;

    /** 众筹状态 */
    @Excel(name = "众筹状态")
    private String status;

    /**  订单号 */
    @Excel(name = " 订单号")
    private String orderNum;

    public void setProjectUserId(Long projectUserId) 
    {
        this.projectUserId = projectUserId;
    }

    public Long getProjectUserId() 
    {
        return projectUserId;
    }
    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setSkuId(Long skuId) 
    {
        this.skuId = skuId;
    }

    public Long getSkuId() 
    {
        return skuId;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setJoinTime(Date joinTime) 
    {
        this.joinTime = joinTime;
    }

    public Date getJoinTime() 
    {
        return joinTime;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setOrderNum(String orderNum) 
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum() 
    {
        return orderNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("projectUserId", getProjectUserId())
            .append("projectId", getProjectId())
            .append("userId", getUserId())
            .append("quantity", getQuantity())
            .append("skuId", getSkuId())
            .append("price", getPrice())
            .append("joinTime", getJoinTime())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("orderNum", getOrderNum())
            .toString();
    }
}
